<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

function rand_string($length) {
    $chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
    $str = "";
    $size = strlen($chars);
    for ($i = 0; $i < $length; $i++) {
        $str .= $chars[rand(0, $size - 1)];
    }
    return $str;
}

function redirectTo($url) {
    header('Location: ' . $url);
}

function checkURL($url) {
    return FALSE;
}

?>
